-- GENERATED SPELL FOR [Voidspawn] --


function spell0_17981(pUnit, Event) --@Mind Sear,n/a--
pUnit:FullCastSpellOnTarget(36447,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17981', 3000, 1)
end

function spell1_17981(pUnit, Event) --@Pain Spike,n/a--
pUnit:FullCastSpellOnTarget(32026,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17981', 0, 1)
end

function Sorts_17981(pUnit, Event)
local choix_sorts_17981 = math.random(0, 1)
if choix_sorts_17981 == 0 then
pUnit:RegisterEvent('spell0_17981', 1, 1)
end
if choix_sorts_17981 == 1 then
pUnit:RegisterEvent('spell1_17981', 1, 1)
end
end

function mob17981_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17981', math.random(1500, 3000), 1)
end

function mob17981_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17981_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17981_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17981, 1, 'mob17981_Action')
RegisterUnitEvent(17981, 2, 'mob17981_Leave')
RegisterUnitEvent(17981, 3, 'mob17981_Kill')
RegisterUnitEvent(17981, 4, 'mob17981_Die')
